<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%String contextRoot = request.getContextPath();%>
<f:loadBundle basename="properties.messages" var="msg" />
<f:view>
<!doctype html>
<head>
	<%@ include file="include/meta.jsp" %>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>SISDEP : Sistema de Informaci<h:outputText value="#{msg.tilde_o}" />n de Espacio P<h:outputText value="#{msg.tilde_u}" />blico</title>
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="stylesheet" href="<%=contextRoot%>/css/validationEngine.jquery.css" type="text/css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/normalize.css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/uniform.css"> <!-- estilos formularios -->
	<link rel="stylesheet" href="<%=contextRoot%>/css/cuerpo.css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/richCustom.css">	
</head>
<body>
<div id="marco"> <!--inicio contenedor -->
<div class="arriba-cuerpo"></div> <!-- Burrada pa ver borde redondo en IE -->
<div class="cuerpo">
<a href="<%=contextRoot%>/index.jsf"><img src="<%= contextRoot %>/images/logos.png" /></a>
<div class="clear"></div>
<!-- Menu y Usuario init() -->
	<%@ include file="include/menuUsuario.jsp" %>
<!-- Menu y Usuario end() -->
<div class="clear"></div>
<!-- Formulario --> 
<div id="buscador">
<h2>Gesti<h:outputText value="#{msg.tilde_o}" />n de Estudio Socio Econ<h:outputText value="#{msg.tilde_o}" />mico: <h:outputText value="#{estSocioEconomicoController.estSocioEconomico.id ne '' ? 'NUEVO' : 'EDICION'}" /></h2>
<h:form id="createEstSocioEconomicoForm">
						<span class="left" style="margin-left:5px">
						<label>idSolicitud <span class="asterisco">*</span></label>
								<h:inputText id="idSolicitud" size="9" maxlength="9" styleClass="validate[required]"
										value="#{estSocioEconomicoController.estSocioEconomico.idSolicitud}" />
						</span>
						
						<div class="clear" style="margin-left: 400px;"></div>
						
						<span class="left" style="margin-left:5px">
						<label>C<h:outputText value="#{msg.tilde_o}" />digo <span class="asterisco">*</span></label>
							<h:inputText id="codigo" size="4" maxlength="4" styleClass="validate[required]"
										value="#{estSocioEconomicoController.estSocioEconomico.codigo}" />
						</span>
						<span class="left" style="margin-left:10px">
						<label>Fecha Ingreso Estudio <span class="asterisco">*</span></label>
							<h:inputText id="fechaIngreso" styleClass="validate[required,custom[date]] fechaIngreso" size="10" maxlength="10"
									value="#{estSocioEconomicoController.estSocioEconomico.fechaIngreso}">
								<f:convertDateTime pattern="dd/MM/yyyy"/>
							</h:inputText>
						</span>
						<span class="left" style="margin-left:10px">
						<label>Tipo <span class="asterisco">*</span></label>
							<h:selectOneMenu id="tipo" styleClass="validate[required]"
												value="#{estSocioEconomicoController.estSocioEconomico.tipo}">
                                <f:selectItem itemLabel="Seleccione..." itemValue=""/>
                                <f:selectItem itemLabel="Nuevo" itemValue="N"/>
                                <f:selectItem itemLabel="Actualizaci#{msg.tilde_o}n" itemValue="A"/>
                            </h:selectOneMenu>
						</span>

						<div class="clear" style="margin-left: 400px;"></div>

						<span class="left" style="margin-left:5px">
						<label>Estado <span class="asterisco">*</span></label>
							<h:selectOneMenu id="estado" styleClass="validate[required]"
												value="#{estSocioEconomicoController.estSocioEconomico.estado}">
                                <f:selectItem itemLabel="Seleccione..." itemValue=""/>
                                <f:selectItems value="#{estSocioEconomicoController.estadoList}"/>
                            </h:selectOneMenu>
						</span>
		<div class="clear" style="margin-left: 400px;"></div>
		<div class="clear"></div>
		(<span class="asterisco"> * </span>) : Campo Obligatorio
		<div class="clear"></div>
		<span class="botones right">
		<h:commandButton id="createEstSocioEconomicoButton"
						 styleClass="botonsmall"
		                 type="submit" 
		                 value="Guardar" 
		                 ondblclick="return false;" 
		                 action="#{estSocioEconomicoController.create}" >
		</h:commandButton>
		</span>
</h:form>
		<span class="botones left">
		<h:form id="cleanEstSocioEconomicoForm">
		<h:commandButton id="cleanEstSocioEconomicodButton"
						 styleClass="botonsmall"
		                 type="submit" 
		                 value="Limpiar" 
		                 ondblclick="return false;" 
                         action="#{estSocioEconomicoController.createEstSocioEconomico}" >
		</h:commandButton>		
		</h:form>
		</span>
</div>
<!-- Fin formulario --> 
<div class="clear"></div>
	<div>
		    <h:form id="cancelEstSocioEconomicoForm">
			<h:commandButton id="cancelCreateEstSocioEconomicoButton"
							 styleClass="botonsmall" 
                             type="submit" 
                             value="Cancelar" 
                             ondblclick="return false;" 
                             action="#{estSocioEconomicoController.cancelEstSocioEconomico}" >
            </h:commandButton>
            </h:form>
	</div>
	<div id="containerError" style="display:block;">
		<span class="botones left"><h:messages style="font-weight: bold; color: #FF0000;" /></span>
	</div>
</div>
<div class="abajo-cuerpo"></div> <!-- Burrada pa ver borde redondo en IE -->
</div> <!-- Fin contenedor -->
<div class="footer"></div>
	<script src="<%=contextRoot%>/js/jquery/lib/jquery-1.7.2.min.js"></script><!-- De ser 1ro -->
	<script src="<%=contextRoot%>/js/script.js" type="text/javascript"></script><!-- De ser 2do -->
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.uniform.min.js"></script> <!-- formularios -->
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine-es.js" type="text/javascript" charset="utf-8"></script>
    <script src="<%=contextRoot%>/js/jquery.maskedinput-1.3.js" type="text/javascript"></script>
	<script type="text/javascript">
		<!--
        jQ(document).ready(function() {
        	jQ("input, select, input:checkbox, input:radio, input:file").uniform();
        	jQ("#createEstSocioEconomicoForm").validationEngine('attach');
        	jQ("#createEstSocioEconomicoForm").bind("jqv.form.result", 
                	function(event, errorFound) {
        				if(!errorFound){ 
            				displayLoadingImage();
        				}
        			});
        	jQ(".fechaIngreso").mask("99/99/9999");
        });
        //-->
	</script>
</body>
</html>
</f:view>

